package cn.stylefeng.guns.modular.score.mapper;

import cn.stylefeng.guns.modular.score.entity.ScoreInfo;
import cn.stylefeng.guns.modular.score.model.params.ScoreInfoParam;
import cn.stylefeng.guns.modular.score.model.result.ScoreInfoResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 排名表 Mapper 接口
 * </p>
 *
 * @author dong
 * @since 2023-04-21
 */
public interface ScoreInfoMapper extends BaseMapper<ScoreInfo> {

    /**
     * 获取列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    List<ScoreInfoResult> customList(@Param("paramCondition") ScoreInfoParam paramCondition);

    /**
     * 获取map列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ScoreInfoParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    Page<ScoreInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") ScoreInfoParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ScoreInfoParam paramCondition);

	List<Map<String, Object>> getPmList();

    Integer getTaskNum(@Param("teamId") Integer teamId);
}
